package com.smart.manager.pop.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.pop.entities.assembler.Reward;
import com.smart.manager.pop.entities.enums.HdNature;
import com.smart.manager.pop.entities.enums.HdState;
import com.smart.manager.pop.entities.enums.RegisterKind;
import io.ebean.annotation.DbJson;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;

/**
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class PopActivityMain extends BaseLongModel {

    @ApiModelProperty(value = "海报标题")
    private String title;

    @ApiModelProperty(value = "活动分类")
    private RegisterKind kind;

    @ApiModelProperty(value = "活动描述")
    private String description;


    @ApiModelProperty(value = "活动性质")
    private HdNature nature;

    @ApiModelProperty(value = "活动状态")
    private HdState state;


    @ApiModelProperty(value = "使用素材")
    private Long posterId;


    @ApiModelProperty(value = "关联链接")
    private Long linkId;

    @ApiModelProperty(value = "奖励规则")
    @DbJson
    private Reward reward ;
}
